home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / tarmail / viewtarmail < prev   
Text File  |  1994-08-01  |  232b  |  11 lines

  1. TAR_OPTS='B'    # change for your system as needed. 'B' is an SGIism for 'b20'.
  2.  
  3. case $# in
  4. 1)    : o.k. ;;
  5. *)    echo 'usage: viewtarmail file'
  6.     echo 'or     viewtarmail -'
  7.     exit 1;;
  8. esac
  9.  
  10. cat $1 | atob | compress -d | tar tv${TAR_OPTS}f -
  11.